import {
    createBrowserRouter,
    createHashRouter
} from "react-router-dom";
import React from "react";
import Login from "../login/login-index"
import AuthLayout from '../auth/layout/layout-index'
import ModuleOnePageOne from '../auth/module-one/page-one/index'
import ModuleOnePageTwo from '../auth/module-one/page-two/index'
import ModuleOnePageThree from '../auth/module-one/page-three/index'
import SubAppContainer from '../auth/subapp/index'

const router = createHashRouter([
    {
      path: '/',
      element: <Login />,
    },
    {
        path: '/auth',
        element: <AuthLayout />,
        children: [
            {
                path: 'module-one/page-one',
                element: <ModuleOnePageOne />,
            },
            {
                path: 'module-one/page-two',
                element: <ModuleOnePageTwo />,
            },
            {
                path: 'module-one/page-three',
                element: <ModuleOnePageThree />,
            },
            {
                path: 'subapp/*',
                element: <SubAppContainer />,
            }
        ],
    },
]);

export default router;


  